[Apiman-user] Proposal to provide relevant HTTP codes for exceptions (not 500 for everything!)

Marc Savy marc.savy at redhat.com
Sat Jun 24 05:47:18 EDT 2017


Off-list feedback for this seems to have been positive, so I've merged
the changes.

It's not set in stone, though, so continue to send any concerns.

On 23 June 2017 at 17:24, Marc Savy <marc.savy at redhat.com> wrote:
> Hi,
>
> Up until now there has been an issue with certain exceptions being
> indistinguishable by HTTP code.
>
> For example: timeouts and connection issues; API not found, API not
> public; invalid accesses, etc, all return 500.
>
> A community member requested us to remedy that, and I'm proposing to
> do the following in this release:
>
> Not found-related (like API not found): 404
> Invalid access (like trying to access an API directly that isn't public): 401
> Unable to connect to backend API: 502
> Connector timeouts: 504
>
> Is this likely to be an issue to anyone such that I should delay its
> inclusion? Any other thoughts?
>
> Regards,
> Marc


More information about the Apiman-user mailing list