maxogden/binary-xhr — pull request #1 by deathcap (2014-01-18 03:37:25+00:00)
Title: Handle HTTP status

If the server returns a non-200 status code (for example 404), currently binary-xhr will pass through the response content (for example "not found") through to the callback exactly as if it was retrieved without error.

This PR simply passes the status code in the 'err' parameter in the callback if not 200 OK, so applications can detect & handle the error accordingly.