Error 400 with no error description if visit request receives no location, but location has seats defined #46
Labels
api feature request
Feature request regarding API design or new APIs without user/moderator frontend
Follow up of #34...
You will get an error 400 (log says
io.ktor.features.BadRequestException: No seat provided but location has seats defined
) if a visit POST request without the seat number is made, but the location has seats defined.e.g.
ok
In order to be able to show the user what the reason for the error 400 is it would be good to also return (at least) an actual error message.
There also is an error 400 if a seat is defined in the request but the location has no seats (
io.ktor.features.BadRequestException: Seat provided but location has no seats defined
).(@euneuber, in case you want to watch)
The text was updated successfully, but these errors were encountered: