Combine build_response and build_error
Fix build_response
Edit build_rsponse