Community articleBad Request
Added by IBM contributorIBM on October 2, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

You send a request to a resource and the service responds with HTTP status code 400 (Bad Request).

Usually this is caused by a bad URL parameter or, in the case of a POST or PUT, a poorly formatted request body. For example, consider a GET request to this URI:

http://xyz.com/xpagesext.nsf/api/data/collections/unid/CD40A953ABDE036A8525786500660C27?ps=10&page=x


The service responds with status code 400 because page=x is invalid. Often the response body includes details about the error condition, for example:

{

	"code":400,

	"text":"Bad Request",

	"message":"Invalid parameter page: x",

	"type":"text",

	"data":"java.lang.Exception: Invalid parameter page: x ...

	}


Parent topic: Troubleshooting IBM Domino Access Services