code: def resource_created_response(resource):
      
      if _get_acceptable_response_type() == JSON:
          response = _single_resource_json_response(resource)
      else:
          response = _single_resource_html_response(resource)
      response.status_code = 201
      response.headers['Location'] = 'http://localhost:5000/{}'.format(
          resource.resource_uri())
      return response
docs: Return HTTP response with status code *201*, signaling a created
      *resource*
  
      :param resource: resource created as a result of current request
      :type resource: :class:`sandman.model.Model`
      :rtype: :class:`flask.Response`