mirror of
https://github.com/jlengrand/picasa.git
synced 2026-03-10 08:31:19 +00:00
Supporting more success codes
This commit is contained in:
@@ -8,7 +8,7 @@ function executeRequest (method, requestOptions, callback) {
|
||||
if (error) return callback(error)
|
||||
|
||||
if (response.statusCode == 403) return callback(new Error(body))
|
||||
if (response.statusCode != 200) {
|
||||
if (response.statusCode < 200 || response.statusCode > 226 ) {
|
||||
const unknownError = new Error('UNKNOWN_ERROR')
|
||||
|
||||
unknownError.statusCode = response.statusCode
|
||||
|
||||
Reference in New Issue
Block a user