Return proper 405 with Allow header for wrong methods.
Return proper 405 with Allow header for wrong methods.