ruby-rdf / rdf-ldp

A suite of LDP software and middleware for RDF.rb & Rack
The Unlicense
13 stars 2 forks source link

Handle HTTP MethodNotSupported errors consistently #32

Closed no-reply closed 9 years ago

no-reply commented 9 years ago

We were previously catching NoMethodError and interpreting it as MethodNotSupported. This led to cases where a NoMethodError thrown deep in a call stack led to the wrong HTTP response code. To fix this, we tighten up the handling to require a NotImplementedError on the method call.