Adding missing return in API, reimplemented 204 code.