array (size=1)string 'unauthorized' (length=12)
'error' =>
instead of:{"error":"unauthorized"}Is there a way to setup my REST controller so it will always return JSON?It looks like you're new here. If you want to get involved, click one of these buttons!