CPAN-API/cpan-api — Issue #166: /pod endpoint 404 message is the module name if the module doesn't exist
Author: rwstauner
Created: 2012-02-20 21:36:30+00:00
State: open

Requesting /pod for a module that doesn't exist returns a json-formatted error but the "message" is just the name of the module requested:

```
*$ curl -v http://api.metacpan.org/pod/Dist::Zilla::Plugin::LocalInstall

* About to connect() to api.metacpan.org port 80 (#0)
* Trying 109.104.113.94... connected
* Connected to api.metacpan.org (109.104.113.94) port 80 (#0)
> GET /pod/Dist::Zilla::Plugin::LocalInstall HTTP/1.1
> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0
> Host: api.metacpan.org
> Accept: */*
> Accept-Encoding: deflate, gzip
>
< HTTP/1.1 404 Not Found
< Server: nginx/1.0.0
< Date: Mon, 20 Feb 2012 21:31:58 GMT
< Content-Type: application/json; charset=utf-8
< Connection: keep-alive
< Content-Length: 55
<
{
"message" : "Dist::Zilla::Plugin::LocalInstall"
}
* Connection #0 to host api.metacpan.org left intact
* Closing connection #0
```