text: 
  exports.types = {
  	custom: function(statusCode, code, message){
  		var payload = {
  			statusCode: statusCode || 500,
  			code: code || 'ERROR',
  			message: message || 'server_error'
  		};
  		return payload;
  	},
  	INVALID_API_TOKEN: {
  		statusCode: 403,
  		message: 'Invalid or missing API token',
  		code: 'invalid_api_token'
  	},
  	INVALID_FIELDS: {
  		statusCode: 400,
  		message: 'Invalid fields',
  		code: 'invalid_fields'
  	},
  };
  
  exports.ApiError = function(type, context){
  	this.type = type;
  	this.context = context || {};
  	return this;
  };