This issue aims to return an HTTP response code in each "onError" call.
Motivation
Manage some fallback mechanisms it's necessary to get the return code to dispatch another action that depends on this code.
DoD
[x] Change the interfaces for the onError parameter std::function<void(const std::string&)> onError to std::function<void(const std::string&, const long)> onError
Description
This issue aims to return an HTTP response code in each "onError" call.
Motivation
Manage some fallback mechanisms it's necessary to get the return code to dispatch another action that depends on this code.
DoD
std::function<void(const std::string&)> onError
tostd::function<void(const std::string&, const long)> onError