1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-22 16:57:36 +01:00

[AC-2824] Change DuplicateAuthRequestException to Inherit from BadRequestException for Correct 400 Status Code (#4470)

This commit is contained in:
Rui Tomé 2024-07-11 14:46:18 +01:00 committed by GitHub
parent 3540c2bf87
commit 3bbac5693f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
namespace Bit.Core.Auth.Exceptions;
using Bit.Core.Exceptions;
public class DuplicateAuthRequestException : Exception
namespace Bit.Core.Auth.Exceptions;
public class DuplicateAuthRequestException : BadRequestException
{
public DuplicateAuthRequestException()
: base("An authentication request with the same device already exists.")