The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
10.4.6 405 Method Not Allowed
The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource.
"How to rectify" depends on what's causing the error. A 404 error could be caused by a misconfiguration at the server level, a malformed hyperlink, a page that has been moved but a link that has not been updated to point to the new location, etc...
If you're having these problems, and want help with them, you'll need to be very specific about what your app is doing when they occur. Otherwise, the best we can do is make wild guesses. [ June 28, 2008: Message edited by: Ben Souther ]