From 3bbac5693f11d2dc34868d2015f17a39624c2604 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rui=20Tom=C3=A9?=
 <108268980+r-tome@users.noreply.github.com>
Date: Thu, 11 Jul 2024 14:46:18 +0100
Subject: [PATCH] [AC-2824] Change DuplicateAuthRequestException to Inherit
 from BadRequestException for Correct 400 Status Code (#4470)

---
 src/Core/Auth/Exceptions/DuplicateAuthRequestException.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Core/Auth/Exceptions/DuplicateAuthRequestException.cs b/src/Core/Auth/Exceptions/DuplicateAuthRequestException.cs
index c3c674e023..1a0970362c 100644
--- a/src/Core/Auth/Exceptions/DuplicateAuthRequestException.cs
+++ b/src/Core/Auth/Exceptions/DuplicateAuthRequestException.cs
@@ -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.")