Error handling

here's a change that handles 404's with the correct mediatype. but i'm not really that happy with it. not that happy with asking people to both create an Api and overwrite the error handler to get 404 error handling either.