Commit c9dbca75 authored by Alessio Parma's avatar Alessio Parma

Update Startup.cs

parent 2544f64a
Pipeline #126494621 passed with stages
in 17 minutes and 15 seconds
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
using PommaLabs.Thumbnailer.Models.Configurations; using PommaLabs.Thumbnailer.Models.Configurations;
using PommaLabs.Thumbnailer.Models.Entities; using PommaLabs.Thumbnailer.Models.Entities;
using PommaLabs.Thumbnailer.Models.Enumerations; using PommaLabs.Thumbnailer.Models.Enumerations;
using PommaLabs.Thumbnailer.Models.Exceptions;
using PommaLabs.Thumbnailer.Services.OperationFilters; using PommaLabs.Thumbnailer.Services.OperationFilters;
using reCAPTCHA.AspNetCore; using reCAPTCHA.AspNetCore;
using Serilog; using Serilog;
...@@ -108,6 +109,7 @@ private static string XmlCommentsFilePath ...@@ -108,6 +109,7 @@ private static string XmlCommentsFilePath
context.Response.StatusCode = exception switch context.Response.StatusCode = exception switch
{ {
ArgumentNullException _ => StatusCodes.Status400BadRequest, ArgumentNullException _ => StatusCodes.Status400BadRequest,
CommandException _ => StatusCodes.Status422UnprocessableEntity,
InvalidOperationException _ => StatusCodes.Status424FailedDependency, InvalidOperationException _ => StatusCodes.Status424FailedDependency,
NotSupportedException _ => StatusCodes.Status400BadRequest, NotSupportedException _ => StatusCodes.Status400BadRequest,
_ => StatusCodes.Status500InternalServerError _ => StatusCodes.Status500InternalServerError
......
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