palantir / conjure

Strongly typed HTTP/JSON APIs for browsers and microservices
https://palantir.github.io/conjure/
Apache License 2.0
419 stars 66 forks source link

Add Conjure Error Code for 401 unauthorized responses #398

Open tom-s-powell opened 5 years ago

tom-s-powell commented 5 years ago

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.

uschi2000 commented 5 years ago

See https://github.com/palantir/conjure/pull/367

pkoenig10 commented 4 years ago

Fixed in #367

jiminsong commented 4 years ago

367 is reverted by https://github.com/palantir/conjure/pull/426