If the Legacy REST Web Services server can process the input in your request but it encounters problems performing an operation it will return HTTP status code 400 Bad Request.

The following example shows an exception that has been returned by the Legacy REST Web Services server. HTTP status code 400 Bad Request indicates that the server cannot perform the requested action because of a problem with the input provided. The server includes the name of the exception (atg.beans.PropertyNotFoundException) in the message body of the response.

curl -v -b cookies.txt -X GET \
http://myserver:8080/rest/bean/atg/dynamo/Configuration/fakeProperty

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> GET /rest/bean/atg/dynamo/Configuration/fakeProperty HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: JSESSIONID=67B1EAF58CC556CE7C628CDE6F395FB4
>
< HTTP/1.1 400 Bad Request
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxTZXJ2aWNlLzEwLjAsQ0FGLzEwLjAgWyBQbGF0Zm9ybUxp
Y2Vuc2UvMCBTZWxmU2VydmljZUxpY2Vuc2UvMCAgXQ==
< Content-Type: text/html;charset=utf-8
< Content-Length: 1585
< Date: Fri, 22 Oct 2010 19:48:53 GMT
< Connection: close
<
<html><head><title>JBoss Web/2.1.3 Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;
font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;
background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,
sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;
font-size:12px;}A {color: black;}A.name {color : black;}HR {color : #525D76;}-->
</style> </head><body><h1>HTTP Status 400 atg.beans.PropertyNotFoundException:
Can't find property named: fakeProperty in class: atg.service.dynamo.
DAFConfiguration Can't find property named: fakeProperty in class: atg.service.
dynamo.DAFConfiguration</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>atg.beans.PropertyNotFoundException: Can't find
property named: fakeProperty in class: atg.service.dynamo.DAFConfiguration Can't
find property named: fakeProperty in class: atg.service.dynamo.DAFConfiguration
</u></p><p><b>description</b> <u>The request sent by the client was syntactically
incorrect (atg.beans.PropertyNotFoundException: Can't find property named:
fakeProperty in class: atg.service.dynamo.DAFConfiguration Can't find property
named: fakeProperty in class: atg.service.dynamo.DAFConfiguration).</u></p>
<HR size="1" noshade="noshade"><h3>JBoss Web/2.1.3</h3></body></html>
* Closing connection #0

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices