Interface for callbacks.
Callback method which is invoked when the request failed.
Callback method which is invoked when the request succeeded.