Return 501 instead of 404 for unrecognized handler

"Action not implemented" is semantically more on point here than "Page
not found".