The error 305 was not a 500 internal error but a 400 bad request