501 responses for API requests + tests.