sat icon indicating copy to clipboard operation
sat copied to clipboard

Support returning arbitrary HTTP status codes

Open SteveSandersonMS opened this issue 2 years ago • 1 comments

Currently, Sat is limited to returning status 200 for all successful responses. You can only set custom status codes for error responses. I'm not sure what even happens if you want to send something like a 301 redirect - is that a success or an error response?

To generalise this to host arbitrary web endpoints, it would be ideal if developers could set any HTTP status code they want, independently of whether the response is being signalled as an error or not.

SteveSandersonMS avatar Mar 14 '22 15:03 SteveSandersonMS

Oops! I meant to link your other issue... this will be addressed in a future version, though :)

cohix avatar Mar 30 '22 13:03 cohix