handle unsupported verbs properly on /api/posts endpoint