openlibraryenvironment/gokb

View Edit User: No 200 for errors

Closed this issue · 2 comments

Actually patching a user with an organisation id result into an error response but in the context of status = 200.
It should be a status <> 2xx.

est. duration: 1d

the 200 acknowledged the change of the properties that are correct and additionally telling that organisation is an unknown property that coudn't be processed. Changing the implementation so that the request is rejected altogether and giving a 400 return code.