Correctly respond with json data after an error.
Pass response object to Authorise