changed the error messages to return an array with the status code as well.

Signed-off-by: license2e <ilya@shindyapin.com>