diff options
Diffstat (limited to 'rest-api-templates')
-rw-r--r-- | rest-api-templates/res_stasis_http_resource.c.mustache | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rest-api-templates/res_stasis_http_resource.c.mustache b/rest-api-templates/res_stasis_http_resource.c.mustache index d35873258..4eda1c5fa 100644 --- a/rest-api-templates/res_stasis_http_resource.c.mustache +++ b/rest-api-templates/res_stasis_http_resource.c.mustache @@ -78,7 +78,11 @@ static void stasis_http_{{c_nickname}}_cb( code = response->response_code; switch (code) { - case 500: /* Internal server error */ + case 0: /* Implementation is still a stub, or the code wasn't set */ + is_valid = response->message == NULL; + break; + case 500: /* Internal Server Error */ + case 501: /* Not Implemented */ {{#error_responses}} case {{code}}: /* {{{reason}}} */ {{/error_responses}} |