conjure
conjure copied to clipboard
Add Conjure Error Code for 401 unauthorized responses
Motivation
I'd like to be able to define a Conjure error whose HTTP status code maps to a 401.
Proposal
Add a NOT_AUTHORIZED
value to https://github.com/palantir/conjure/blob/fc68a07b5780858521d2b50382c1a3c4b0b61bad/conjure-api/src/main/conjure/conjure-api.yml#L31.
See https://github.com/palantir/conjure/pull/367
Fixed in #367
#367 is reverted by https://github.com/palantir/conjure/pull/426