BulkRequestDeserializationException Class
Thrown when the top-level bulk request envelope cannot be deserialised because the
JSON structure is invalid — for example, the root element is not a JSON object, a
required field (endpoint or method) is missing or has the wrong type,
or the items field is not a JSON array.
public sealed class BulkRequestDeserializationException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 BulkRequestDeserializationException
Remarks
Section titled “Remarks”This exception is raised by the bulk-request deserialiser before the controller is invoked, and results in a single HTTP 400 (Bad Request) response for the whole request. No per-item error objects are produced.
To avoid this error, ensure that the request body is a well-formed JSON object with
a non-null endpoint string, a non-null method string, and — if present
— an items field that is a JSON array.
This exception is identified by error code HK01007.
Properties
Section titled “Properties”BulkRequestDeserializationException.EquivalentHttpStatusCode Property
Section titled “BulkRequestDeserializationException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 400 (Bad Request).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }