Renamed 'errors' hook to 'responses', and the necessary refactoring