diff options
author | David M. Lee <dlee@digium.com> | 2013-07-23 14:57:03 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-07-23 14:57:03 +0000 |
commit | e148c6e867540675d1f26e54fa91b3497d0e8b6f (patch) | |
tree | bac4f4eb0e2c94ed2b3d5834d2826096ac235553 /res/res_stasis_http.c | |
parent | ff2f5eaa230651d3fd5e603ab31c281fe7c6a517 (diff) |
No more teapots.
Now that the ARI implementation is nearing some definition of
completeness, we should properly respond with 501's for unimplemented
functionality, instead of the almost humorous 418.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_http.c')
-rw-r--r-- | res/res_stasis_http.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_stasis_http.c b/res/res_stasis_http.c index 196912390..393953f24 100644 --- a/res/res_stasis_http.c +++ b/res/res_stasis_http.c @@ -545,9 +545,10 @@ void stasis_http_invoke(struct ast_tcptls_session_instance *ser, callback(get_params, path_vars, headers, response); if (response->message == NULL && response->response_code == 0) { /* Really should not happen */ - ast_assert(0); + ast_log(LOG_ERROR, "ARI %s %s not implemented\n", + ast_get_http_method(method), uri); stasis_http_response_error( - response, 418, "I'm a teapot", + response, 501, "Not Implemented", "Method not implemented"); } } |