Extract MethodNotAllowed as an API exception

This allows views to throw with a proper HTTP error code if
a specific method is not a valid call on a resource.

Change-Id: Iad15024edd66ab3908c5b4e7319b8956b935b8a2
2 files changed