13 lines
402 B
Python
13 lines
402 B
Python
from __future__ import annotations
|
|
from typing import Mapping
|
|
from src.application.domain.exceptions.application_exception import ApplicationException
|
|
|
|
|
|
class BadRequestException(ApplicationException):
|
|
def __init__(
|
|
self,
|
|
message: str = 'Bad Request',
|
|
headers: Mapping[str,str] | None = None,
|
|
):
|
|
super().__init__(status_code=400,message=message,headers=headers)
|