Send error status along with JSON that have errors