replaced remaining 405 status codes by 400