Part 13 / Topic 4 of 6
The automatic 405 — no code needed to get it
Neither route file above exports DELETE. Hitting one with DELETE anyway:
$ curl -s -D - -X DELETE http://localhost:PORT/api/status/2458001234
HTTP/1.1 405 Method Not Allowed
This is the installed guide's own documented behavior, quoted directly: "If an unsupported method is called, Next.js will return a 405 Method Not Allowed response." No if (request.method !== 'GET') check was written anywhere in this harness's route files — the framework rejects the call before the handler's own code runs at all, purely from which function names the file does and doesn't export.
Done here? The practice set for Part 13 — including the solutions — is on the part page.