Add an API-specific 404 handler.

Review Request #4464 — Created Aug. 20, 2013 and submitted

Information

Djblets
master

Reviewers

Add an API-specific 404 handler.

URLs within the /api/ tree that return 404 end up returning the full HTML 404,
rather than an API error code. This is kind of crummy, especially when using
the python API bindings. This change adds a catch-all handler at the end of the
URL patterns to return the API error code.
curl http://127.0.0.1:8080/notfound/
curl http://127.0.0.1:8080/api/notfound/
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        djblets/webapi/resources.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        djblets/webapi/resources.py
      Ignored Files:
    
    
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (252601c).