Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Forbidden exceptions on unique constraint violations? #122

Open
AlexKolpa opened this issue Apr 5, 2018 · 3 comments
Open

Forbidden exceptions on unique constraint violations? #122

AlexKolpa opened this issue Apr 5, 2018 · 3 comments

Comments

@AlexKolpa
Copy link
Collaborator

I was curious why iaas returns 403 forbidden on a unique constraint violation. In general those exceptions would be treated as a 409 conflict, right?

@rogierslag
Copy link
Member

Could also be a 409 indeed. In this case I opted for a 403 since the token request is denied

@AlexKolpa
Copy link
Collaborator Author

AlexKolpa commented Apr 5, 2018

Yes, denied , but not forbidden. Forbidden suggests I'm missing the proper rights to make this requests.

Would you be opposed to this code being changed? As a consumer of the API I was thoroughly confused receiving a 403 here and trying to figure out what kind of authentication/rights were required.

@rogierslag
Copy link
Member

I wouldn't mind, but note this would require a major release as is may break backwards compatibility for clients

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants