def response(<EOL>code,<EOL>description):
payload = jsonify({<EOL>"<STR_LIT>": code,<EOL>"<STR_LIT:message>": description<EOL>})<EOL>return payload, code<EOL>
Format a response

:param int code: HTTP error code
:param str description: Error message
:return: Tuple of a wrapped JSON snippet and the error code
:rtype: Tuple of :py:class:`flask.Response` containing a JSON snippet,
    and the error code

The JSON snippet is formatted like this:

.. code-block:: json

   {
       "status_code": 404,
       "message": "The requested URL was not found on the server"
   }