Show More
@@ -60,7 +60,7 b' class SessionRootHandler(IPythonHandler):' | |||||
60 | "suitable kernel instead, or install that kernel." % kernel_name) |
|
60 | "suitable kernel instead, or install that kernel." % kernel_name) | |
61 | status_msg = 'Kernel not found' |
|
61 | status_msg = 'Kernel not found' | |
62 | msg = dict(full=msg, short=status_msg) |
|
62 | msg = dict(full=msg, short=status_msg) | |
63 |
raise web.HTTPError( |
|
63 | raise web.HTTPError(501, json.dumps(msg)) | |
64 |
|
64 | |||
65 | location = url_path_join(self.base_url, 'api', 'sessions', model['id']) |
|
65 | location = url_path_join(self.base_url, 'api', 'sessions', model['id']) | |
66 | self.set_header('Location', url_escape(location)) |
|
66 | self.set_header('Location', url_escape(location)) |
General Comments 0
You need to be logged in to leave comments.
Login now