Univention Bugzilla – Bug 53596
wrong status code in kelvin-api get
Last modified: 2021-07-19 09:59:07 CEST
When making a get on a non-existent school, we get a 422 instead of a 404 curl -X 'GET' \ 'http://10.200.47.83/ucsschool/kelvin/v1/classes/?school=dummy&name=kaese' ... { "detail": "Unprocessable Entity: {'position': 'LDAP object cn=klassen,cn=schueler,cn=groups,ou=dummy,dc=dc-we,dc=intranet could not be found.\\nIt possibly has been deleted or moved. Please update your search results and open the object again.'}" } -> return 404 instead