Add API version header
Refactor error and data response