wzr1337 / rsi.server

This project implements the Volkswagen Infotainment Web Interface as published under https://www.w3.org/Submission/2016/01/. The viwi is now called RESTful service interface (rsi)
MIT License
62 stars 18 forks source link

Server must respond 501 instead of 404 when a not implemented service is accessed #72

Closed wzr1337 closed 6 years ago

wzr1337 commented 6 years ago

Tests show:

**************************************************
*                    Failures                    *
**************************************************

1) [viwi.protocol] operate on / should not implement POST on /
  - Expected status code '501' => got '404' instead.

2) [viwi.protocol] operate on / should not implement DELETE on /
  - Expected status code '501' => got '404' instead.
wzr1337 commented 6 years ago

The Spec says:

501 | Not Implemented | The server does not support the functionality required to fulfill the request. Unless specified otherwise in service specific status code handling, this error indicates a not-permitted error.