Targetprocess REST API returns the following status codes:
Code | Description |
---|---|
200 | Success. Request was handled correctly. |
401 | Unauthorized. Wrong or missed credentials. |
400 | Bad format. Incorrect parameter or query string. |
403 | Forbidden. A user has insufficient rights to perform an action. |
404 | Requested Entity not found. |
500 | Internal server error. Targetprocess messed up. |
501 | Not implemented. The requested action is either not supported or not implemented yet. |
Response contains information about error for 4xx or 5xx HTTP status code.
<Error> <Status>BadRequest</Status> <Message>Invalid include field 'Nam'. It isn't defined in 'Tp.Integration.Services.Rest.Dto.UserStoryField'</Message> <Type>Tp.Integration.Rest.Exceptions.BadRequestException</Type> <StackTrace> at Tp.Integration.Rest.Web.Controllers.ResourcesController.GetAllInternal[TService,TResource](String format, String include, String exclude, String append, String acid, EndPoint`2 endpoint) at Tp.Integration.Rest.Web.Controllers.UserStoriesController.GetAll(String format, String include, String exclude, String append, String acid) at lambda_method(ExecutionScope , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcReflectedActionDescriptor.cs:line 72 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 179 at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 220 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 208 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 208 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 208 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 227 at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) in C:UserstruhtanovDownloadsmvc2-rtm-sourcesmvc2-rtm-sourcessrcSystemWebMvcMvcControllerActionInvoker.cs:line 153</StackTrace> <Error> <Message>Invalid include field 'Nam'. It isn't defined in 'Tp.Integration.Services.Rest.Dto.UserStoryField'</Message> <Type>Tp.Integration.Rest.Model.Exceptions.FieldNotFoundException</Type> <StackTrace> at Tp.Integration.Rest.Web.QueryStrategies.IncludeStrategy.<GetFields>d__0.MoveNext() at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext() at Tp.BusinessObjects.Services.Reports.FieldsSeparator.NormalizeResourceFields(IEnumerable`1 fields) in d:srctrunkCodeMainTp.Integration.RestReportsFieldsSeparator.cs:line 74 at Tp.BusinessObjects.Services.Reports.FieldsSeparator..ctor(IResourceField self, IEnumerable`1 fields) in d:srctrunkCodeMainTp.Integration.RestReportsFieldsSeparator.cs:line 25 at Tp.BusinessObjects.Services.Reports.ExpandableQueryBuilder..ctor(IResourceField resourceField, ProcessInfoDto process, IEnumerable`1 fields, IEnumerable`1 criterias) in d:srctrunkCodeMainTp.Integration.RestReportsExpandableQueryBuilder.cs:line 30 at Tp.BusinessObjects.Services.Reports.ResourceQuery.GetResources(ContextDto singleProcessContext) in d:srctrunkCodeMainTp.Integration.RestReportsResourceQuery.cs:line 44 at Tp.BusinessObjects.Services.Reports.ResourceQuery.Read(ContextDto context) in d:srctrunkCodeMainTp.Integration.RestReportsResourceQuery.cs:line 36 at Tp.BusinessObjects.Services.RestService.Tp.Integration.Services.Rest.IRestService.Read(ContextDto context, IEnumerable`1 fields, IEnumerable`1 criteria) in d:srctrunkCodeMainTp.Integration.RestRestService.cs:line 46 at Tp.BusinessObjects.Services.RestService`1.Read(ContextDto context, IEnumerable`1 fields, IEnumerable`1 criteria) in d:srctrunkCodeMainTp.Integration.RestRestService.cs:line 147 at Tp.Integration.Rest.Web.EndPoint`2.GetAll(String acid, String include, String exclude, String append) at Tp.Integration.Rest.Web.Controllers.ResourcesController.GetAllInternal[TService,TResource](String format, String include, String exclude, String append, String acid, EndPoint`2 endpoint)</StackTrace> </Error> </Error>
Still have a question?
We're here to help! Just contact our friendly support team.
Find out more about our APIs, Automation Rules, Mashups and custom extensions.