Project

General

Profile

Actions

Enhancement #25927

open

Calling REST API with unsupported method returns 404 instead of 405 Bad Method

Added by Clark ANDRIANASOLO about 1 month ago. Updated 21 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
API
Target version:
UX impact:
It bothers me each time
Suggestion strength:
Want - This would make my life a lot easier but I can manage without
User visibility:
First impressions of Rudder
Effort required:
Small
Name check:
To do
Fix check:
To do
Regression:
No

Description

When calling any HTTP endpoint with the PUT method, when the endpoint does only support POST (or GET, but not PUT), the API response is a 404 Not Found with the HTML content :

<!DOCTYPE html>
<html> <body>The Requested URL {URL HERE} was not found on this server</body> </html>  

Instead the REST API could return the 405 Bad Method error to indicate at least to the user that the URL is right but the method is wrong

Actions

Also available in: Atom PDF