changed 400 error to 405