added some details to the whole ApiError class