Skip to content
Snippets Groups Projects
  • Will McCutchen's avatar
    9e306405
    Improve and standardize error handling (#135) · 9e306405
    Will McCutchen authored
    Standardize on structured JSON error responses everywhere we can, with
    only one exception where the error is a warning for humans to read.
    
    Fixes #108 by adding a check to every request in the test suite to
    ensure that errors are never served with a Content-Type that might
    enable XSS or other vulnerabilities.
    
    While we're at it, continue refining the test suite and further adopting
    some of the testing helpers added in #131.
    9e306405
    History
    Improve and standardize error handling (#135)
    Will McCutchen authored
    Standardize on structured JSON error responses everywhere we can, with
    only one exception where the error is a warning for humans to read.
    
    Fixes #108 by adding a check to every request in the test suite to
    ensure that errors are never served with a Content-Type that might
    enable XSS or other vulnerabilities.
    
    While we're at it, continue refining the test suite and further adopting
    some of the testing helpers added in #131.