Document resources and routes. Fixing response status codes