Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE structure/id quand la structure est published #605

Closed
GtanSndil opened this issue Apr 19, 2024 · 1 comment · Fixed by #610
Closed

DELETE structure/id quand la structure est published #605

GtanSndil opened this issue Apr 19, 2024 · 1 comment · Fixed by #610
Assignees

Comments

@GtanSndil
Copy link
Contributor

pour le DELETE setructure/id, quand on a le bon timbre mais que la structure est publiée, c'est une 403 (RmesUnauthorizedException) qu'on renvoie (avec code 1103 "Only unpublished codelist can be deleted")
Renvoyer plutôt une 406 (RmesNotAcceptableException)

@GtanSndil GtanSndil self-assigned this Apr 19, 2024
@GtanSndil GtanSndil changed the title DELTE structure/id quand la structure est published DELETE structure/id quand la structure est published Apr 19, 2024
@GtanSndil GtanSndil linked a pull request Apr 19, 2024 that will close this issue
@GtanSndil
Copy link
Contributor Author

Finalement renvoyer plutôt une erreur 400 (Bad Request)

@GtanSndil GtanSndil linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant