parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Return HTTP response status codes from Cloud Code

Open BobyIlea opened this issue 11 months ago • 3 comments
trafficstars

New Feature / Enhancement Checklist

Current Limitation

The HTTP status codes returned by cloud code in the response's header can not be determined in the cloud functions.

Feature / Enhancement Description

Ability to set the HTTP status code in the response header of a cloud function call.

Example Use Case

Set a 401 status code in the response header when an unauthenticated user tries to access unauthorised data.

Alternatives / Workarounds

Currently we can manually set any information in the response body and mimic the status code functionality by manually parsing and handling the data and logic.

3rd Party References

All backends should have this ability.

BobyIlea avatar Dec 09 '24 13:12 BobyIlea

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza is this still an issue would like to work on it

Dharmil03 avatar May 22 '25 09:05 Dharmil03

@Dharmil03 I'd suggest to drop a comment in the stale PR #9500 to see whether it is actually already finished, or you can build on top of it.

mtrezza avatar May 25 '25 00:05 mtrezza