worker: fix bug FE-1195 add custom status codes to worker error object

- fix bug FE-1195 implement statusCodes for errors