Idea

Chris Fitzpatrick avatar image
Chris Fitzpatrick suggested

Return Actual Responses / Error from Azure Function CloudScript

Currently, it seems not possible to send all the proper HTTP responses from Azure function through the CloudScript endpoint.Errors and redirects get lost.

The workaround that is commonly suggested is to always return a OK response with a JSON body like:

{ "code": 404, "result": "error", "message": "Request not found" }

But this is super annoying to deal with on the client-side. ( You're getting an error that is not sent as an error ).

Ideally, we can just proxy through some responses, like errors, redirects, and ( stretch goal ) maybe even download streams?

apisCloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

No Comments

·

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.