http-error

What are the 404;1, 404;2 etc HTTP error codes for?

In IIS I can configure my custom error pages. For each HTTP Error code I can say where to go. Several codes have a number of "sub" codes available. For example 404 has a regular 404, 404;1, 404;2 and so on.. What are they for? When are they returned? Should I make custom pages for these errors? Can I somehow easely configure all code "f...

JQuery on Google JSON fails with Error 405?

I am not able to understand, how to do fetch JSON data from Google servers, the requests fails with 405 HTTP error (Method Not Allowed). But I can download the JSON file manually or using PHP on my web server using file_get_contents API. But I want client browsers to download the JSON data directly. There are some similar questions on SO...

Overriding urllib2 HTTPError and reading response HTML anyway

I am trying to screen scrape multiple pages of a website, that return an 'HTTP Error 500: Internal Server Error' response, but still give important data inside the error HTML. Normally, I would fetch a page using this (Python 2.6.4): import urllib2 url = "http://google.com" data = urllib2.urlopen(url) data = data.read() But when atte...

Trigger a HTTP error in Rails

I'm trying to call a custom instance of a 403 HTTP error in Rails but I can't seem to figure out how to do this... I have several user authentication roles and basically if a role tries to browse to an area that it is not authorised to visit I want to display a 403 instead of just redirecting the user. How do I do this? ...

How do you throw an HTTP error with mod_python

I have a setup where I'm serving simple python pages using the mod_python publisher. At some points I'd like to have the python function raise a standard apache error - for example throwing a 500 error if a required file is missing. How can I throw an apache error from within a mod_python script? ...

App Engine HTTP 500s

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. I've handled all the situations, also DeadlineExceededError too. But sometimes I see ...

Google App Engine Python WebApp framework supported self.error() codes.

Hi! I know we can return errors to requests by calling self.error(http_error_code_here). However, there are some error codes that don't seem to be supported. "Unsupported error code" comes out when I use error code 510. I used http://en.wikipedia.org/wiki/List_of_HTTP_status_codes as a reference for the error codes I am using. What ht...

Any ideas how to troubleshoot HTTP Error 400 for MVC/Firefox?

Two clients complains on HTTP Error 400 from Mozilla Firefox 3.6.9. This happens when they open any link - both mvc application and also any static images, which are hosted on Classic application pool without any code. Exact error message is HTTP Error 400. The request is badly formed No errors in windows log and application error log....

java.io.IOException: Server returned HTTP response code: 500 for URL: https://hostname:port/xxx.do

We are getting the "java.io.IOException: Server returned HTTP response code: 500 for URL" error for the following code which is for applet-servlet communication. The same code has been working for long and now suddenly we see this error. Could something be wrong with tomcat setup? Tomcat logs do not show any error. The exception is throw...

"http error" when using Uploadify plugin for JQuery

I'm using the plugin from here: http://www.uploadify.com/ I have setup a simple test case, select a file etc & I get a "HTTP Error" when I try to upload. Here is the relevant code from my header.. <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript" src="../js/swfobject.js"></script> <script ty...