In the next version, the request is wrapped in do..rescue block and we need to set the response when the request fails. So I'll leave the structure as it is now.