13 lines
399 B
C#
13 lines
399 B
C#
using System;
|
|
namespace ln.http.exceptions
|
|
{
|
|
public class PayloadTooLargeException: HttpException
|
|
{
|
|
public PayloadTooLargeException(int payloadsize,int limit)
|
|
:base(513,"Payload too large")
|
|
{
|
|
HttpResponse = new HttpResponse(HttpStatusCode.PayloadTooLarge).Content(String.Format("Payload too large ({0} > {1})", payloadsize, limit));
|
|
}
|
|
}
|
|
}
|