mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
feat(proxy): throw user-readable error on 413 when sending proxied attachments
This commit is contained in:
parent
5196e332df
commit
014999271f
3 changed files with 28 additions and 0 deletions
|
|
@ -61,6 +61,14 @@ public class BadRequestException: DiscordRequestException
|
|||
{ }
|
||||
}
|
||||
|
||||
public class RequestEntityTooLargeException: DiscordRequestException
|
||||
{
|
||||
public RequestEntityTooLargeException(HttpResponseMessage response, string responseBody, DiscordApiError? apiError) : base(
|
||||
response, responseBody, apiError)
|
||||
{ }
|
||||
}
|
||||
|
||||
|
||||
public class TooManyRequestsException: DiscordRequestException
|
||||
{
|
||||
public TooManyRequestsException(HttpResponseMessage response, string responseBody, DiscordApiError? apiError) :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue