Useragent is a project mainly written in Ruby, it's free.
Detect Browser and OS from request
404: Not Found