Fixed problem with getting error response when sending request.