Skip to content

Commit fd81e98

Browse files
committed
Improve response code when certificate not found during ContentHostingConfiguration provisioning. Issue found during uplift testing.
1 parent f07cf03 commit fd81e98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/5gmsaf/msaf-m1-sm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void msaf_m1_state_functional(ogs_fsm_t *s, msaf_event_t *e)
376376
char *err;
377377
err = ogs_msprintf("Unable to retrieve certificate for the Provisioning Session [%s].", message->h.resource.component[1]);
378378
ogs_error("%s", err);
379-
ogs_assert(true == nf_server_send_error(stream, 500, 2, message, "Internal Server Error.", err, NULL, NULL, m1_contenthostingprovisioning_api, app_meta));
379+
ogs_assert(true == nf_server_send_error(stream, 404, 2, message, "Certificate not found.", err, NULL, NULL, m1_contenthostingprovisioning_api, app_meta));
380380
ogs_free(err);
381381
}
382382
} else {

0 commit comments

Comments
 (0)