make 405 (Method Not Allowed) to a valid status code