nl_tokens: ~~~~~~~ Error handling ~~~~~~~~~
pl_tokens: function ifStatusOk ( response , fulfill , reject ) { var responseCode = response . code ; if ( isClientError ( responseCode ) ) { reject ( { name : "ClientErrorException" , message : response . body } ) ; } else if ( isServerError ( responseCode ) ) { reject ( { name : "ServerErrorException" , message : response . error } ) ; } else if ( isOtherErrorResponse ( responseCode ) ) { reject ( { name : "OtherCommunicationException" , message : <mask> . error } ) ; } else { fulfill ( response . body ) } }