Atlassian interview question

What are Rest API and explain different http response code