Standarised error handling responses from GET, PUT and DELETE requests.