From 1878aca979c04d764fdee891e9a5027d25145e1c Mon Sep 17 00:00:00 2001 From: David Cheung Date: Wed, 1 Feb 2017 10:47:23 -0500 Subject: [PATCH] Update readme with added XML support --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e6c75e9..deb8fb9 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ For details on configuration options, see below. ### Response format and content type -The `strong-error-handler` package supports HTML and JSON responses: +The `strong-error-handler` package supports JSON, HTML and XML responses: - When the object is a standard Error object, it returns the string provided by the stack property in HTML/text responses. @@ -71,8 +71,9 @@ The content type of the response depends on the request's `Accepts` header. - For Accepts header `json` or `application/json`, the response content type is JSON. - For Accepts header `html` or `text/html`, the response content type is HTML. +- For Accepts header `xml` or `text/xml`, the response content type is XML. -*There are plans to support other formats such as Text and XML.* +*There are plans to support other formats such as Plain-text.* ## Options @@ -241,4 +242,3 @@ The same error generated when `debug: true` : message: 'Missing required fields', code: 'MISSING_REQUIRED_FIELDS' }} ``` -