Added err service
Added error response in json