How to decide between returning 404 or 405 status on undefined REST routes

0 votes
asked Mar 15, 2016 by last_Detail (640 points)
I'm writing RESTful API and I have doubt. I've created controller that handles requests to undefined resources (I mean incorrect URIs, not correct URIs but with inexistent IDs) Please do share your thoughts

Please log in or register to answer this question.

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!