Error Objects
Last updated
// Example of returning JSON API formatted errors
// Note the single error object must be returned as an array keyed
// on `errors`.
let jsonApiErrors = {
errors: [{
detail: "This is an error message",
status: '400',
title: '',
code: '978',
meta:{
stackTrace: ''
}
}]
};
cb(jsonApiErrors);