Skip to content

Return HTTP response status codes from Cloud Code #9479

Open
@BobyIlea

Description

@BobyIlea

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.

Activity

parse-github-assistant

parse-github-assistant commented on Dec 9, 2024

@parse-github-assistant

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!
added
type:featureNew feature or improvement of existing feature
bounty:$50Bounty applies for fixing this issue (Parse Bounty Program)
on Dec 9, 2024
linked a pull request that will close this issue on Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$50Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @BobyIlea@mtrezza

      Issue actions

        Return HTTP response status codes from Cloud Code · Issue #9479 · parse-community/parse-server