docs: function (failureResponse, request, callback) {
  
              var status = failureResponse.status;
  
              // resource forwarded to the callback
              var res = {
                  response : {
                      responseText : failureResponse.responseText,
                      responseJSON : failureResponse.responseJSON,
                      responseXML : failureResponse.responseXML
                  },
                  error : true
              };
  
              // HTTP error
              var messageId = "HTTP_ERRORS_" + status;
              var message = this[messageId];
              if (!message) {
                  message = this.HTTP_ERRORS_GENERAL;
              }
  
              res.errorData = {
                  "messageBean" : {
                      "code" : status,
                      "localizedMessage" : message,// currently sourced from res, to be migrated to the db as a
                      // part of another sprint task.
                      "type" : "HTTPERROR"
                  }
              };
  
              this.$callback(callback, res);
          }