Fix event identifier type

The identifier of the error event emitted on a bad response status code
wasn't a string as it should be, causing an ReferenceError when the event is emitted.