def error_response(message):
    """ An error occurred in processing the request, i.e. an exception was thrown

    {
    	"status" : "error",
    	"message" : "Unable to communicate with database"
	}

    required keys:
    	status: Should always be set to "error".
		message: A meaningful, end-user-readable (or at the least log-worthy) message, explaining what went wrong.
	
	Optional keys:
		code: A numeric code corresponding to the error, if applicable
		data: A generic container for any other information about the error, i.e. the conditions that caused the error, stack traces, etc.
	
	"""

    return {'status': 'error','message': message}