# Net::HTTPServerException 404 "Not Found"

**URL:** <https://www.ruby-forum.com/t/net-httpserverexception-404-not-found/66211>\
**Category:** Rails\
**Created:** [August 24, 2006, 12:08am UTC](https://www.ruby-forum.com/t/net-httpserverexception-404-not-found/66211 "2006-08-24T00:08:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim\_dandy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jim\_dandy](https://www.ruby-forum.com/u/jim_dandy)\
**Post date:** [August 24, 2006, 12:08am UTC](https://www.ruby-forum.com/t/net-httpserverexception-404-not-found/66211/1 "2006-08-24T00:08:38Z")

</div>

I’m calling a web service using and am receiving the following error:

Net::HTTPServerException 404 “Not Found”

Can’t find any documentation on this. What method throws this error? The  
get, or the reading of the response? I’m performing a  
Net::HTTP::Get.new, then reading the response.

Thanks!

---

<div class="post-metadata">

**Author:** ![jim\_dandy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jim\_dandy](https://www.ruby-forum.com/u/jim_dandy)\
**Post date:** [August 24, 2006, 11:43am UTC](https://www.ruby-forum.com/t/net-httpserverexception-404-not-found/66211/2 "2006-08-24T11:43:39Z")

</div>

jim dandy wrote:

> I’m calling a web service using and am receiving the following error:
> 
> Net::HTTPServerException 404 “Not Found”
> 
> Can’t find any documentation on this. What method throws this error? The  
> get, or the reading of the response? I’m performing a  
> Net::HTTP::Get.new, then reading the response.

You should be able to tell which method is resulting in that error by  
looking at the stack trace that gets printed underneath the error.  
It’ll tell you which method Ruby was in when the exception occurred,  
and which line number in which file that was.

However, the root cause of the error is a standard 404 response from  
the server that’s running the web service you’re calling. Are you sure  
you’ve got the correct URL?

Chris
