Top "Httpexception" questions

HttpException or HTTPException are exception classes defined by various object oriented libraries that signal a problem during processing of a http request.

Catching "Maximum request length exceeded"

I'm writing an upload function, and have problems catching "System.Web.HttpException: Maximum request length exceeded" with files larger than …

c# asp.net httpexception
How do I get StatusCode from HttpRequestException?

I'm probably missing something obvious here. I'm using HttpClient which throws HttpRequestException that contains StatusCode in the Message string. How …

c# dotnet-httpclient httpexception
How to troubleshoot "System.Web.HttpException (0x80004005): File does not exist"?

Apologies if this has already been answered on this site, I searched but did not find this exact scenario. I'm …

asp.net wcf httpexception
The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

I have a website in an IIS 7 shared hosting environment. It's running .NET 3.5. I have a download button to download …

c# asp.net iis-7 shared-hosting httpexception
Throwing an HttpException always sends back HTTP 500 error?

I'm trying to throw an HTTP 403 error code back at the client. I've read that HttpException is the cleanest way …

c# asp.net http httpexception
ASP.NET Core equivalent of ASP.NET MVC 5's HttpException

In ASP.NET MVC 5 you could throw a HttpException with a HTTP code and this would set the response like …

c# .net asp.net-core asp.net-core-mvc httpexception
HttpContext throws HttpException

I have written a custom http handler. I have done this by writing a class which implements the IHttphandler. Inside …

c# asp.net .net iis-7 httpexception
Diagnosing "Request timed out" HttpExceptions

Here on StackOverflow, we're seeing a few "Request timed out" exceptions every day. The facts: Request timeout is the default 90 …

asp.net httpexception request-timed-out
Server cannot modify cookies after HTTP headers have been sent

I am creating a web application in C#. When my page loads I fire an asynchronous thread to process some …

c# asp.net cookies httpcookie httpexception
When HttpStatusCodeException exception raised?

when i use below code , what is the case to get HttpStatusCodeException exception . ResponseEntity<Object> response = restTemplate.exchange(…

java spring rest httpexception