Handle error getting the scalar token and check for non-success status codes in the response handler (because apparently browser-request doesn't consider that an error).