adding room for parameters as specified in the API docs
tweaking the response code check;