Unsupported Media Type - 415
This type of error response occurs when a file has been uploaded that does not meet our expectations. The only type of files we support for device profile creation are .JS/.js (JavaScript) & .JSON/.json
An example of an Unsupported Media Type error can be seen below:
{
Title = "Invalid File Type",
Status = StatusCodes.Status415UnsupportedMediaType,
Detail = "The file contained as part of the request is of an unsupported type."
}
Title | Detail |
---|---|
Invalid File Type. | The file uploaded during device profile creation is not .JSON/.json or .JS/.js. |