diff --git a/API/Controllers/SearchController.cs b/API/Controllers/SearchController.cs index ad46547..5af0ed2 100644 --- a/API/Controllers/SearchController.cs +++ b/API/Controllers/SearchController.cs @@ -78,12 +78,11 @@ public class SearchController(PgsqlContext context, ILog Log) : Controller /// Manga-Page URL /// /// Multiple connectors found for URL - /// No Manga at URL - /// No connector found for URL + /// Manga not found /// Error during Database Operation [HttpPost("Url")] [ProducesResponseType(Status200OK, "application/json")] - [ProducesResponseType(Status400BadRequest)] + [ProducesResponseType(Status404NotFound)] [ProducesResponseType(Status500InternalServerError, "text/plain")] public IActionResult GetMangaFromUrl([FromBody]string url) { @@ -91,7 +90,7 @@ public class SearchController(PgsqlContext context, ILog Log) : Controller return StatusCode(Status500InternalServerError, "Could not find Global Connector."); if(connector.GetMangaFromUrl(url) is not { } manga) - return BadRequest(); + return NotFound(); try { if(AddMangaToContext(manga) is { } add)