gets bad request error