1
0
Fork 0

Fix: Corrected status code for ICECAST_ERROR_ADMIN_MOUNT_NOT_ACCEPT_URL_UPDATES

Closes: #2373
This commit is contained in:
Philipp Schafft 2020-10-15 16:19:38 +00:00
parent c3340dd73d
commit 1c98b77aab
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ static const icecast_error_t __errors[] = {
{.id = ICECAST_ERROR_ADMIN_missing_parameter, .http_status = 400,
.uuid = "8be9ef0a-2b32-450c-aec9-a414ca0c074c",
.message = "missing parameter"},
{.id = ICECAST_ERROR_ADMIN_MOUNT_NOT_ACCEPT_URL_UPDATES, .http_status = 501,
{.id = ICECAST_ERROR_ADMIN_MOUNT_NOT_ACCEPT_URL_UPDATES, .http_status = 422,
.uuid = "3bed51bb-a10f-4af3-9965-4e67181de7d6",
.message = "mountpoint will not accept URL updates"},
{.id = ICECAST_ERROR_ADMIN_NO_SUCH_DESTINATION, .http_status = 404,

View File

@ -771,6 +771,7 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
case 409: statusmsg = "Conflict"; break;
case 415: statusmsg = "Unsupported Media Type"; break;
case 416: statusmsg = "Request Range Not Satisfiable"; break;
case 422: statusmsg = "Unprocessable Entity"; break;
case 426: statusmsg = "Upgrade Required"; break;
case 429: statusmsg = "Too Many Requests"; break;
/* case of 500 is handled differently. No need to list it here. -- ph3-der-loewe, 2018-05-05 */