Commit 24d4b582 authored by Javier Quinteros's avatar Javier Quinteros

Response level not valid in text format

parent 370a49a5
......@@ -418,6 +418,13 @@ return StationXML.
else:
enddt = None
if level == 'response':
# Send Error 400
message = 'Response level not valid in text format'
self.__log.error(message)
cherrypy.response.headers['Content-Type'] = 'text/plain'
raise cherrypy.HTTPError(400, errormessage(400, message))
cherrypy.response.headers['Content-Type'] = 'text/plain'
return self.__generatemetadata(liststa, startdt, enddt, level)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment