Maybe 405 would be more accurate if you don't like just the User-Agent,
[RFC2616] 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.
But Request-Line doesn't include User-Agent, so never mind.