Commit 1c98b77a authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Corrected status code for ICECAST_ERROR_ADMIN_MOUNT_NOT_ACCEPT_URL_UPDATES

Closes: #2373
parent c3340dd7
Pipeline #2197 failed with stage
......@@ -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,
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment