diff --git a/Jellyfin.Api/Controllers/DlnaServerController.cs b/Jellyfin.Api/Controllers/DlnaServerController.cs index df7504b777..694d16ad97 100644 --- a/Jellyfin.Api/Controllers/DlnaServerController.cs +++ b/Jellyfin.Api/Controllers/DlnaServerController.cs @@ -41,7 +41,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Description xml returned. - /// Service Unavailable. + /// DLNA is disabled. /// An containing the description xml. [HttpGet("{serverId}/description")] [HttpGet("{serverId}/description.xml", Name = "GetDescriptionXml_2")] @@ -59,7 +59,7 @@ namespace Jellyfin.Api.Controllers return Ok(xml); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -67,7 +67,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Dlna content directory returned. - /// Service Unavailable. + /// DLNA is disabled. /// An containing the dlna content directory xml. [HttpGet("{serverId}/ContentDirectory")] [HttpGet("{serverId}/ContentDirectory/ContentDirectory", Name = "GetContentDirectory_2")] @@ -84,7 +84,7 @@ namespace Jellyfin.Api.Controllers return Ok(_contentDirectory.GetServiceXml()); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -92,7 +92,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Dlna media receiver registrar xml returned. - /// Service Unavailable. + /// DLNA is disabled. /// Dlna media receiver registrar xml. [HttpGet("{serverId}/MediaReceiverRegistrar")] [HttpGet("{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar", Name = "GetMediaReceiverRegistrar_2")] @@ -109,7 +109,7 @@ namespace Jellyfin.Api.Controllers return Ok(_mediaReceiverRegistrar.GetServiceXml()); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -117,7 +117,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Dlna media receiver registrar xml returned. - /// Service Unavailable. + /// DLNA is disabled. /// Dlna media receiver registrar xml. [HttpGet("{serverId}/ConnectionManager")] [HttpGet("{serverId}/ConnectionManager/ConnectionManager", Name = "GetConnectionManager_2")] @@ -134,7 +134,7 @@ namespace Jellyfin.Api.Controllers return Ok(_connectionManager.GetServiceXml()); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -142,7 +142,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Control response. [HttpPost("{serverId}/ContentDirectory/Control")] [ProducesResponseType(StatusCodes.Status200OK)] @@ -156,7 +156,7 @@ namespace Jellyfin.Api.Controllers return await ProcessControlRequestInternalAsync(serverId, Request.Body, _contentDirectory).ConfigureAwait(false); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -164,7 +164,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Control response. [HttpPost("{serverId}/ConnectionManager/Control")] [ProducesResponseType(StatusCodes.Status200OK)] @@ -178,7 +178,7 @@ namespace Jellyfin.Api.Controllers return await ProcessControlRequestInternalAsync(serverId, Request.Body, _connectionManager).ConfigureAwait(false); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -186,7 +186,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Control response. [HttpPost("{serverId}/MediaReceiverRegistrar/Control")] [ProducesResponseType(StatusCodes.Status200OK)] @@ -200,7 +200,7 @@ namespace Jellyfin.Api.Controllers return await ProcessControlRequestInternalAsync(serverId, Request.Body, _mediaReceiverRegistrar).ConfigureAwait(false); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -208,7 +208,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Event subscription response. [HttpSubscribe("{serverId}/MediaReceiverRegistrar/Events")] [HttpUnsubscribe("{serverId}/MediaReceiverRegistrar/Events")] @@ -225,7 +225,7 @@ namespace Jellyfin.Api.Controllers return ProcessEventRequest(_mediaReceiverRegistrar); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -233,7 +233,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Event subscription response. [HttpSubscribe("{serverId}/ContentDirectory/Events")] [HttpUnsubscribe("{serverId}/ContentDirectory/Events")] @@ -250,7 +250,7 @@ namespace Jellyfin.Api.Controllers return ProcessEventRequest(_contentDirectory); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -258,7 +258,7 @@ namespace Jellyfin.Api.Controllers /// /// Server UUID. /// Request processed. - /// Service Unavailable. + /// DLNA is disabled. /// Event subscription response. [HttpSubscribe("{serverId}/ConnectionManager/Events")] [HttpUnsubscribe("{serverId}/ConnectionManager/Events")] @@ -275,7 +275,7 @@ namespace Jellyfin.Api.Controllers return ProcessEventRequest(_connectionManager); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -285,7 +285,7 @@ namespace Jellyfin.Api.Controllers /// The icon filename. /// Request processed. /// Not Found. - /// Service Unavailable. + /// DLNA is disabled. /// Icon stream. [HttpGet("{serverId}/icons/{fileName}")] [SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "serverId", Justification = "Required for DLNA")] @@ -300,7 +300,7 @@ namespace Jellyfin.Api.Controllers return GetIconInternal(fileName); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } /// @@ -310,7 +310,7 @@ namespace Jellyfin.Api.Controllers /// Icon stream. /// Request processed. /// Not Found. - /// Service Unavailable. + /// DLNA is disabled. [HttpGet("icons/{fileName}")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] @@ -323,7 +323,7 @@ namespace Jellyfin.Api.Controllers return GetIconInternal(fileName); } - return StatusCode(503); + return StatusCode(StatusCodes.Status503ServiceUnavailable); } private ActionResult GetIconInternal(string fileName)